package cn.bluemobi.dylan.step.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import cn.bluemobi.dylan.step.R;
import cn.bluemobi.dylan.step.activity.skeleton.HumanSkeletonActivity;

public class YunDongActivity extends AppCompatActivity implements View.OnClickListener {

    private Button tiaoSheng;
    private Button AItiaoSheng;
    private Button paoBu;
    private ImageView yundongback;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_yun_dong);

        tiaoSheng = (Button) findViewById(R.id.tiaoSheng);
        AItiaoSheng = (Button) findViewById(R.id.AItiaoSheng);
        paoBu = (Button) findViewById(R.id.paoBu);
        yundongback = (ImageView) findViewById(R.id.yundong_back);

        tiaoSheng.setOnClickListener(this);
        AItiaoSheng.setOnClickListener(this);
        paoBu.setOnClickListener(this);
        yundongback.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tiaoSheng:
                startActivity(new Intent(this, TiaoSheng.class));
                break;
            case R.id.AItiaoSheng:
                startActivity(new Intent(this, HumanSkeletonActivity.class));
                break;
            case R.id.paoBu:
                startActivity(new Intent(this, Paobu.class));
                break;
            case R.id.yundong_back:
//                startActivity(new Intent(this, MainActivity.class));
                finish();
                break;
        }
    }
}